package com.zx.chatroom.po;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * GroupChat entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "GROUP_CHAT")
public class GroupChat implements java.io.Serializable {

	// Fields

	private String groupid;
	private String groupCreater;
	private String remark;
	private Date createtime;
	private String createdept;
	private String groupname;
	private String status;

	// Constructors

	/** default constructor */
	public GroupChat() {
	}

	/** minimal constructor */
	public GroupChat(String groupid) {
		this.groupid = groupid;
	}

	/** full constructor */
	public GroupChat(String groupid, String groupCreater, String remark,
			Date createtime, String createdept, String groupname,
			String status) {
		this.groupid = groupid;
		this.groupCreater = groupCreater;
		this.remark = remark;
		this.createtime = createtime;
		this.createdept = createdept;
		this.groupname = groupname;
		this.status = status;
	}

	// Property accessors
	@Id
	@Column(name = "GROUPID", unique = true, nullable = false, length = 60)
	public String getGroupid() {
		return this.groupid;
	}

	public void setGroupid(String groupid) {
		this.groupid = groupid;
	}

	@Column(name = "GROUP_CREATER", length = 60)
	public String getGroupCreater() {
		return this.groupCreater;
	}

	public void setGroupCreater(String groupCreater) {
		this.groupCreater = groupCreater;
	}

	@Column(name = "REMARK", length = 1000)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "CREATETIME")
	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Column(name = "CREATEDEPT", length = 60)
	public String getCreatedept() {
		return this.createdept;
	}

	public void setCreatedept(String createdept) {
		this.createdept = createdept;
	}

	@Column(name = "GROUPNAME", length = 100)
	public String getGroupname() {
		return this.groupname;
	}

	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}

	@Column(name = "STATUS", length = 60)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}